<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/hlht/hlhtTenantOpenApply.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<br>' +
            '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>互联互通</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>运营商互联申请列表</strong>' +
            '</li>' +
            '</ol>';
    });
    var has_add = '';
    var has_edit = '';
    var has_delete = '';

    var Hlht_apply_look = false;
</script>
<body class="gray-bg">
<div class="wrapper wrapper-content overflow-x: scroll">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <%--<input id="searchName" name="searchName" type="text" class="form-control shortInput input-distance"--%>
                    <%--       placeholder="对方运营商">--%>


                    <select type="text" class="form-control shortInput input-distance" name="hlhtTenantOrHlhtOperator" style="display: block" id="hlhtTenantOrHlhtOperator">
                        <option value="" selected>互联运营商</option>
                        <c:forEach items="${hlhtTenantList}" var="hlhtTenant">
                            <option value="${hlhtTenant.code}">${hlhtTenant.name}</option>
                        </c:forEach>
                    </select>
                    <%-- 开放类型,0 SAAS运营商 1商业运营平台 2政府平台'--%>
                    <select id="hlhtOpenType" name="hlhtOpenType" class="form-control shortInput input-distance">
                        <option value="">互联类型</option>
                        <option value="0">SAAS运营商</option>
                        <option value="1">商业运营平台</option>
                        <option value="2">政府平台</option>
                    </select>
                    <select id="hlhtType" name="hlhtType" class="form-control shortInput input-distance">
                        <option value="">互联方向</option>
                        <option value="0">反向</option>
                        <option value="1">正向</option>
                    </select>
                    <button class="btn btn-success input-distance" onclick="hlhtTenantOpenApply.reLoad()">查询</button>

                    <shiro:hasPermission name="Hlht_apply_add">
                    <button type="button" class="btn  btn-primary input-distance" onclick="hlhtTenantOpenApply.addHlhtTenantOpenApply()">
                        发起申请
                    </button>
                    </shiro:hasPermission>
                </div>

            </div>
            <table id="exampleTable" style="word-break:break-all;" data-mobile-responsive="true">
            </table>
        </div>
    </div>
</div>

<shiro:hasPermission name="Hlht_apply_look">
    <script>
        Hlht_apply_look = true;
    </script>
</shiro:hasPermission>
<script type="text/javascript">
    $(function () {
        $('#hlhtTenantOrHlhtOperator').searchableSelect();
    })
    hlhtTenantOpenApply.init();
</script>
</body>
</html>